﻿using System;
namespace Bit.Art.Api.Models
{
    /// <summary>
    /// 创建用户的请求
    /// </summary>
    public class CreateAccountRequest
    {
        /// <summary>
        /// 用户名, 长度不能超过255个字节
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// 密码, 长度不能超过32个字节
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 手机号, 用户字段不能超过20个字节
        /// </summary>
        public string Cellphone { get; set; }

        /// <summary>
        /// 用户头像的URL，可以是.jpg, .png等图片格式，URL的长度不能超过255的字节
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 用户昵称, 长度不能超过255个字节
        /// </summary>
        public string Nickname { get; set; }
    }

    /// <summary>
    /// 创建用户请求的响应
    /// </summary>
    public class CreateAccountResponse
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// 错误代码
        /// </summary>
        public int ErrorCode { get; set; }

        /// <summary>
        /// 错误消息
        /// </summary>
        public string ErrorMessage { get; set; }

        /// <summary>
        /// 用户的Id
        /// </summary>
        public ulong UserId { get; set; }

        /// <summary>
        /// 是否注册成功
        /// </summary>
        public bool Success { get; set; }
    }
}
